package com.cowcode.entity;

import java.sql.Timestamp;

public class Class {
    private int cid;
    private Study sid;//学习主题
    private String ctext;//课程内容
    private Timestamp ctime;//上架时间
    private String cauthor;//作者

    public Class() {
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public Study getSid() {
        return sid;
    }

    public void setSid(Study sid) {
        this.sid = sid;
    }

    public String getCtext() {
        return ctext;
    }

    public void setCtext(String ctext) {
        this.ctext = ctext;
    }

    public Timestamp getCtime() {
        return ctime;
    }

    public void setCtime(Timestamp ctime) {
        this.ctime = ctime;
    }

    public String getCauthor() {
        return cauthor;
    }

    public void setCauthor(String cauthor) {
        this.cauthor = cauthor;
    }

    @Override
    public String toString() {
        return "Class{" +
                "cid=" + cid +
                ", sid=" + sid +
                ", ctext='" + ctext + '\'' +
                ", ctime=" + ctime +
                ", cauthor='" + cauthor + '\'' +
                '}';
    }

    public Class(int cid, Study sid, String ctext, Timestamp ctime, String cauthor) {
        this.cid = cid;
        this.sid = sid;
        this.ctext = ctext;
        this.ctime = ctime;
        this.cauthor = cauthor;
    }


}
